package cn.com.ege.mvc.service.impl.business;

import java.io.Serializable;

import cn.com.ege.mvc.exception.BusinessException;
import cn.com.ege.mvc.model.business.Category;
import cn.com.ege.mvc.service.BaseService;

public class CategoryService extends BaseService<Category> implements Serializable {
	public void save(Category category) throws BusinessException{
		if (null != category ) {
			if(null != category.getId()&& 0 != category.getId()){
				update(category);
			}else{
				add(category);
			}
		}else {
			throw new BusinessException("类别Category不能为空。");
		}
	}
}
